<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>在线课程</title>
    <script>
        ; (function (designWidth, maxWidth) {
            var doc = document,
                win = window,
                docEl = doc.documentElement,
                remStyle = document.createElement("style"),
                tid;

            function refreshRem() {
                var width = docEl.getBoundingClientRect().width;
                maxWidth = maxWidth || 540;
                width > maxWidth && (width = maxWidth);
                var rem = width * 100 / designWidth;
                remStyle.innerHTML = 'html{font-size:' + rem + 'px;}';
            }

            if (docEl.firstElementChild) {
                docEl.firstElementChild.appendChild(remStyle);
            } else {
                var wrap = doc.createElement("div");
                wrap.appendChild(remStyle);
                doc.write(wrap.innerHTML);
                wrap = null;
            }
            //要等 wiewport 设置好后才能执行 refreshRem，不然 refreshRem 会执行2次；
            refreshRem();

            win.addEventListener("resize", function () {
                clearTimeout(tid); //防止执行两次
                tid = setTimeout(refreshRem, 300);
            }, false);

            win.addEventListener("pageshow", function (e) {
                if (e.persisted) { // 浏览器后退的时候重新计算
                    clearTimeout(tid);
                    tid = setTimeout(refreshRem, 300);
                }
            }, false);

            if (doc.readyState === "complete") {
                doc.body.style.fontSize = "14px";
            } else {
                doc.addEventListener("DOMContentLoaded", function (e) {
                    doc.body.style.fontSize = "14px";
                }, false);
            }
        })(828 , 828);
    </script>
    <link rel="stylesheet" href="./css/reset.css">
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/shuili.css">
</head>
<body>
    <div class="header flex align-center justify-between">
        <div class="flex align-center">
            <img src="./imgs/logo.png" class="logo" alt="">
            <span>水利造价信息网</span>
        </div>
        <img src="./imgs/fenlei.png" class="fenlei" alt="">
    </div>
    <div class="video">
        <!-- <img src="./imgs/kecbj.png" class="video" alt=""> -->
        <video src="" class="video" poster="./imgs/kecbj.png"></video>
    </div>
    <div class="video-title">
        <div class="title">水利水电管理与务实精讲课程</div>
        <div class="count">1628次播放</div>
    </div>
    <!-- 视频合集 -->
    <div class="video-list">
        <div class="list-title flex align-center justify-between">
            <span>水利水电管理与实务（视频合集）</span>
            <div class="list-sub-title">
                <span>全部16集</span>
                <img src="./imgs/day.png" class="link" alt="">
            </div>
        </div>
        <div class="list-item flex justify-around">
            <div class="item">
                <img src="./imgs/kecbj.png" class="kc-item" alt="">
                <div class="overhidden-word">导学第一节(精讲课程)</div>
            </div>
            <div class="item">
                <img src="./imgs/kecbj.png" class="kc-item" alt="">
                <div class="overhidden-word">导学第二节复习方法及考试技巧(精讲课程)</div>
            </div>
            <div class="item">
                <img src="./imgs/kecbj.png" class="kc-item" alt="">
                <div class="overhidden-word">导学第三节复习方法及考试技巧(精讲课程)</div>
            </div>
            <div class="item">
                <img src="./imgs/kecbj.png" class="kc-item" alt="">
                <div class="overhidden-word">导学第一节(精讲课程)</div>
            </div>
            <div class="item">
                <img src="./imgs/kecbj.png" class="kc-item" alt="">
                <div class="overhidden-word">导学第二节复习方法及考试技巧(精讲课程)</div>
            </div>
            <div class="item">
                <img src="./imgs/kecbj.png" class="kc-item" alt="">
                <div class="overhidden-word">导学第三节复习方法及考试技巧(精讲课程)</div>
            </div>
        </div>
    </div>
    <!-- 内容 -->
    <div class="navs content-navs flex">
		<div class="nav flex1 active">本节内容</div>
		<div class="nav flex1">知识提问</div>
		<div class="nav flex1">课程习题</div>
	</div>
	<div class="content"id="content1" >
		<div class="content-title" >
			《建设工程技术与计量（水利工程）》——第一章第一节上
		</div>
    </div>
    <div class="content2" id="content2"style="display: none;">
        <div  class="content-title">
            <textarea id="question" placeholder="请输入提问内容......"></textarea>
            <div class="flex email-input">
                <h4>邮箱地址：</h4>
                <input id="email" placeholder-style="color: #fff;" placeholder="输入正确的邮箱地址">
                <button id="answer">提交</button>
            </div>
        </div>
    </div>
    <div class="content" id="content3" style="display: none;">
        <div class="content-title">
            测试
        </div>
    </div>
    <div style="height: 1rem;">
        <div class="tabbar flex">
            <div class="tab flex1">
                <img src="./imgs/tabs/shouye.png" alt="">
                <div>首页</div>
            </div>
            <div class="tab flex1">
                <img src="./imgs/tabs/huiyuan.png" alt="">
                <div>会员注册</div>
            </div>
            <div class="tab flex1">
                <img src="./imgs/tabs/a_zixun.png" alt="">
                <div>在线咨询</div>
            </div>
            <div class="tab flex1">
                <img src="./imgs/tabs/gouwuche.png" alt="">
                <div>资料下载</div>
            </div>
            <div class="tab flex1">
                <img src="./imgs/tabs/a_py.png" alt="">
                <div>在线课堂</div>
            </div>
        </div>
    </div>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
    <script>
        var navs = $('.nav')
        navs.each(function(i,ele) {
            $(this).on('click',function(){
                $(this).addClass('active').siblings().removeClass('active')
            })
        })
		$('.navs div').each(function (i,e) {
        $(this).on('click',function () {
           if(i == 0) {
               $("#content1").show()
               $("#content2").hide()
               $("#content3").hide()
           }else if(i == 1) {
               $("#content2").show()
               $("#content1").hide()
               $("#content3").hide()
           }else if(i == 2) {
               $("#content3").show()
               $("#content2").hide()
               $("#content1").hide()
           }
        })
    });
    </script>
</body>
</html>